<?php

namespace pam\Factory;

/**
 * Description of SocialPolicyServiceFactory
 *
 * @author Robert Bwana <robert.bwana@ssra.go.tz>
 */

use pam\Service\SocialPolicyService;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class SocialPolicyServiceFactory implements FactoryInterface{
    public function createService(ServiceLocatorInterface $serviceLocator) {
        return new SocialPolicyService(
                $serviceLocator->get('pam\Mapper\SocialPolicyDataAccess'),
                $serviceLocator->get('pam\Mapper\SocialPolicyIndicatorsDataAccess')
                );
    }

}
